3.1530 \(\int \frac{1}{2+b x} \, dx\)

Optimal. Leaf size=10 \[ \frac{\log (b x+2)}{b} \]

[Out]

Log[2 + b*x]/b

________________________________________________________________________________________

Rubi [A]  time = 0.0013725, antiderivative size = 10, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 7, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {31} \[ \frac{\log (b x+2)}{b} \]

Antiderivative was successfully verified.

[In]

Int[(2 + b*x)^(-1),x]

[Out]

Log[2 + b*x]/b

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rubi steps

\begin{align*} \int \frac{1}{2+b x} \, dx &=\frac{\log (2+b x)}{b}\\ \end{align*}

Mathematica [A]  time = 0.0009751, size = 10, normalized size = 1. \[ \frac{\log (b x+2)}{b} \]

Antiderivative was successfully verified.

[In]

Integrate[(2 + b*x)^(-1),x]

[Out]

Log[2 + b*x]/b

________________________________________________________________________________________

Maple [A]  time = 0.001, size = 11, normalized size = 1.1 \begin{align*}{\frac{\ln \left ( bx+2 \right ) }{b}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(b*x+2),x)

[Out]

ln(b*x+2)/b

________________________________________________________________________________________

Maxima [A]  time = 0.947636, size = 14, normalized size = 1.4 \begin{align*} \frac{\log \left (b x + 2\right )}{b} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*x+2),x, algorithm="maxima")

[Out]

log(b*x + 2)/b

________________________________________________________________________________________

Fricas [A]  time = 1.90311, size = 22, normalized size = 2.2 \begin{align*} \frac{\log \left (b x + 2\right )}{b} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*x+2),x, algorithm="fricas")

[Out]

log(b*x + 2)/b

________________________________________________________________________________________

Sympy [A]  time = 0.058025, size = 7, normalized size = 0.7 \begin{align*} \frac{\log{\left (b x + 2 \right )}}{b} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*x+2),x)

[Out]

log(b*x + 2)/b

________________________________________________________________________________________

Giac [A]  time = 1.06089, size = 15, normalized size = 1.5 \begin{align*} \frac{\log \left ({\left | b x + 2 \right |}\right )}{b} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*x+2),x, algorithm="giac")

[Out]

log(abs(b*x + 2))/b